<?php 
    namespace Application\Form;
    
    use Zend\Form\Form;
    class FilterForm extends Form{
        public function __construct($name = null){
            parent::__construct('filter');
            $this->setAttribute('method', 'post');
            $this->setAttribute('enctype','multipart/form-data');
            $this->add(array(
                'name' => 'id',
                'attributes' => array(
                    'type'  => 'hidden',
                ),
                'options' => array(
                    'id'  => 'id',
                    'label'  => "No",
                ),
                'validators' => array(
                ),
            ));
            $this->add(array(
                'name' => 'created_at',
                'attributes' => array(
                    'type'  => 'Zend\Form\Element\Date',
                ),
                'options' => array(
                    'id'  => 'created_at',
                    'label'  => "Date création",
                ),
                'validators' => array(
                ),
            ));
            $this->add(array(
                'name' => 'id_type_filter',
                'attributes' => array(
                    'type'  => 'Zend\Form\Element\Number',
                ),
                'options' => array(
                    'id'  => 'id_type_filter',
                    'label'  => "id_type_filter",
                ),
                'validators' => array(
                ),
            ));
            $this->add(array(
                'name' => 'modified_at',
                'attributes' => array(
                    'type'  => 'Zend\Form\Element\Date',
                ),
                'options' => array(
                    'id'  => 'modified_at',
                    'label'  => "Date modification",
                ),
                'validators' => array(
                ),
            ));
            $this->add(array(
                'name' => 'submit',
                'attributes' => array(
                    'type'  => 'submit',
                    'value' => 'Submit',
                    'id' => 'submitbutton',
                ),
            ));
        }
    }
